<?php

    foreach ($view->album as $pic) {
        var_dump($pic);
        ?>
<div class="pic">
    <?php 
        echo $pic["id_pet"];
    ?>
</div>
 <?php   
    }  
?>
